Values in SkinOOUIThemes are TitleCase, but these filenames are
lowercase. And we silently ignore missing files. This only worked for
the default theme, which is hardcoded to lowercase 'mediawiki' above.
Change-Id: I5b14d65a8f7d5219acfa2a40eabbb13617833b26
foreach ( $themes as $skin => $theme ) {
// Find the path to the JSON file which contains the actual image definitions for this theme
// TODO Allow extensions to specify this path somehow
- $dataPath = $rootPath . '/' . $theme . '/' . $name . '.json';
+ $dataPath = $rootPath . '/' . strtolower( $theme ) . '/' . $name . '.json';
$localDataPath = $this->localBasePath . '/' . $dataPath;
// If there's no file for this module of this theme, that's okay, it will just use the defaults